﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
</head>
    <div class="alert alert-info">当前位置<b class="tip"></b>客户流失管理<b class="tip"></b>客户流失列表</div>
<!-- 搜索 -->
<div class="alert alert-info">
    <form method="GET" name="search_form">
		<p>
			客户名称：
	   		<input type="text" name="name" size="30" value="{$Think.get.name}" />
		&nbsp;&nbsp;
			客户经理：
	   		<input type="text" name="give_name" size="30" value="{$Think.get.give_name}" />
		&nbsp;&nbsp;
			状态：
                        <select name="status">
                            <option></option>
                            <option >暂缓流失</option>
                            <option>确认流失</option>
                        </select>
		&nbsp;&nbsp;
                <input type="submit" value=" 搜索 " class="btn" /></p>
    </form>
</div>
<!-- 列表 -->
<div class="list-div" id="listDiv">
	<table class="tb" id="top">
    	<tr>
            <th >客户编号</th>
            <th >客户名字</th>
            <th >客户经理</th>
            <th >上次下单时间</th>
            <th >确认流失时间</th>
            <th >状态</th>
            <th >流失原因</th>
			<th width="60">操作</th>
        </tr>
		<volist name="data" id="v">         
			<tr class="tron">
				<td>{$v['client_id']}</td>
				<td>{$v['name']}</td>
				<td>{$v['give_name']}</td>
				<td>{$v['last_time']|date="Y-m-d H:i",###}</td>
				<td>{$v['run_time']!=0?$v['run_time']||date="Y-m-d H:i",### :'未确认流失时间'}</td>
				<td>{$v['status']=='0'?'未处理状态':$v['status']}</td>
				<td>{$v['why_run']}</td>
		        <td align="center">
                            <if condition="$v['status']==='0'">
		        	<a class="btn"  href="{:U('add',array('id'=>$v['id'],'p'=>$p))}" >暂缓流失</a>
                            <elseif condition="$v['status']=='暂缓流失'"/>
                                <a class="btn"  href="{:U('add',array('id'=>$v['id'],'p'=>$p))}" >暂缓流失</a>
                                <a class="btn"  href="{:U('edit',array('id'=>$v['id'],'p'=>$p))}"  >确认流失</a> 
                            </if>
		        </td>
	        </tr>
                </volist>
		<if condition="preg_match('/\d/', $page)">  
        <tr><td align="right" nowrap="true" colspan="99" height="30">{$page}</td></tr> 
                </if>
	</table>
</div>
<script>
</script>